﻿using Dapper;

namespace HDLogCenterService.Model
{
    [Table("app_logs")]
    public class LogMessage
    {
        [Key] // 主键
        [Column("id")]
        public long Id { get; set; }

        [Column("server_code")]
        public string ServerCode { get; set; }

        [Column("code")]
        public string Code { get; set; }

        [Column("server_ip")]
        public string ServerIp { get; set; }

        [Column("level")]
        public byte Level { get; set; }

        [Column("message")]
        public string Message { get; set; }

        [Column("error_stack")]
        public string ErrorStack { get; set; }

        [Column("is_timeout")]
        public bool IsTimeout { get; set; }

        [Column("millisecond")]
        public long Millisecond { get; set; }

        [Column("http_method")]
        public string HttpMethod { get; set; }

        [Column("url")]
        public string Url { get; set; }

        [Column("create_time")]
        public DateTime CreateTime { get; set; }
    }
}
